home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
prolog
/
sbprolog
/
atari
/
ataribin.zoo
/
sbp_v3.1
/
sbpshell.doc
next >
Wrap
Text File
|
1992-02-20
|
740b
|
25 lines
Quick overview of the commands in SBPshell:
pwd - prints out current path
cd - changes working directory
edit - call program editor.prg with supplied command line
ls
dir - list current directory in brief style
ll - list current directory with length, date etc.
free - print free GEMDOS memory
date - print date and time
to use SBPshell from within SBprolog you can do the following:
system(ls). lists directory
system('cd somewhere') changes dir (notice the single quotes!)
to use the editor you might want to use the following program.
edit(X) :- name(X,Xn),name(Y,[101,100,105,116,32|Xn]),system(Y).
then you can type edit('name.p') to call the editor
(single quotes, if a dot is in the filename).